package com.example.lance.textapp;

import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rect;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MenuItem;


public class MainActivity extends ActionBarActivity {

    private MyView mv;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mv = new MyView(this);
        setContentView(mv);

    }

    @Override
    public boolean onKeyDown(int keyCode, KeyEvent event) {
        mv.onKeyDown(keyCode, event);
        return super.onKeyDown(keyCode, event);
    }

}
